package cn.itcast.test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * 启动类：
 *  加载spring配置文件，引导dubbo服务提供者启动
 */
public class Provider {
    public static void main(String[] args) throws IOException {
        //1.加载spring配置文件
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext-provider.xml");
        //2.启动spring容器
        ac.start();
        //3.输入任一项关闭
        System.in.read();
    }
}
